#if PF_TO_NET

#ifndef  _PF_SOCKET_H_
#define  _PF_SOCKET_H_

#ifdef _cplusplus
extern "C"{
#endif

#include "Queue.h"
#include "Global.h"

#if UCOS
#define PF_BUF_SIZE 1024
#else
#define PF_BUF_SIZE 4096
#endif

typedef struct _PfSocket
{
	uint16 m_RxPort;
	uint16 m_TxPort;
	char m_IpAddr[20];
	
	uint8 m_Buff[PF_BUF_SIZE];
	Queue m_Queue;
}PfSocket;

int PfSocket_Out(const char* lpszFormat, ...);
void PfSocket_Init(const char* g_IpAddr, uint16 rxPort, uint16 txPort);
void PfSocket_Start(void);

#ifdef _cplusplus
}
#endif

#endif             

#endif

